import config from '@/config'
const baseUrl = env => {
  if (env === 'development') {
    return config.baseUrl.dev
  } else {
    return config.baseUrl.pro
  }
}

export default {
  baseApiPath: baseUrl(process.env.NODE_ENV),
  captchaApiPath: baseUrl(process.env.NODE_ENV) + '/commons/captcha.jpg',
  ueditorApiPath: baseUrl(process.env.NODE_ENV) + '/commons/ueditor',
  navLog: config.title
}
